﻿using System;
using System.Collections.Generic;
using System.Web;

namespace WeMakeSP.WebComponents.RSSAdvancedReaderWebPart
{
    /// <summary>
    /// Represents the configuration for an RSS reader feed.
    /// </summary>
    public class RSSAdvancedReaderFeedConfiguration
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="RSSAdvancedReaderFeedConfiguration"/> class.
        /// </summary>
        public RSSAdvancedReaderFeedConfiguration()
        {
            this.Load = true;
        }

        #endregion

        #region Public Properties

        /// <summary>
        /// Gets or sets the limit.
        /// </summary>
        /// <value>The limit.</value>
        public int Limit
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="RSSAdvancedReaderFeedConfiguration"/> is load.
        /// </summary>
        /// <value><c>True</c> if load; otherwise, <c>false</c>.</value>
        public bool Load
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the RSS link.
        /// </summary>
        /// <value>The RSS link.</value>
        public string Link
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the height of the max image.
        /// </summary>
        /// <value>The height of the max image.</value>
        public int MaxImageHeight
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the width of the max image.
        /// </summary>
        /// <value>The width of the max image.</value>
        public int MaxImageWidth
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets a value indicating whether [show image].
        /// </summary>
        /// <value><c>True</c> if [show image]; otherwise, <c>false</c>.</value>
        public bool ShowImage
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets a value indicating whether [show publication date].
        /// </summary>
        /// <value><c>true</c> if [show publication date]; otherwise, <c>false</c>.</value>
        public bool ShowPublicationDate
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the view.
        /// </summary>
        /// <value>The reader´s view.</value>
        public RSSAdvancedReaderItemView View
        {
            get;
            set;
        }

        #endregion
    }
}
